@import '~antd/es/style/themes/default.less';

.main {
  width: 368px;
  margin: 5px auto;
  padding-top: 30px;

  @media screen and (max-width: @screen-sm) {
    width: 95%;
  }

  .toRegister {
    float: right;
    text-align: right;
    font-size: 16px;
  }

  .toLogin {
    float: left;
    text-align: left;
    font-size: 16px;
  }

  .icon {
    margin-left: 16px;
    color: @text-color-secondary;
    font-size: 24px;
    vertical-align: middle;
    cursor: pointer;
    transition: color 0.3s;

    &:hover {
      color: @primary-color;
    }
  }

  .other {
    margin-top: 24px;
    line-height: 22px;
    text-align: left;

    .register {
      float: right;
    }
  }

  .submitBox {
    margin-top: -10px;
  }

  :global {
    .antd-pro-login-submit {
      width: 100%;
      margin-top: 18px;
    }
  }
  
}

.addressTab{
  height: 50px;
  position: relative;
  overflow: hidden;
  
  &:after,&:before{
    content: '';
    height: 25px;
    position: absolute;
    width: 100%;
    z-index: 1;
  }
  &:before{
    top: 0;
    background: #4e90e8;
  }
  &:after{
    bottom: 0;
    background: #ffffff;
  }
  .tabList{
    display: block;
    width: 100%;
    height: 100%;
    font-size: 0;
    line-height: 0;
    position: relative;
    z-index: 11;
    transform: skewX(10deg);
    transition: transform 0.2s cubic-bezier(0.27, 0, 0, 1);

    &.active {
      transform: skewX(-10deg);
      .tabItem .text {
        transform: skewX(10deg);
      }
      .tabItem.left {
        border-bottom-right-radius: 30px;
        border-top-right-radius: 0;
        background: #4e90e8;
        .text {
          color: rgba(255, 255, 255, 0.9);
          font-weight: normal;
        }
      }
      .tabItem.right {
        border-top-left-radius: 30px;
        background: #fff;
        border-bottom-left-radius: 0;
        .text {
          color: #005fe0;
          font-weight: bold;
        }
      }
    }
  }
  .tabItem{
    width: 50%;
    height: 50px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;

    .text {
      display: block;
      width: 100%;
      height: 100%;
      transform: skewX(-10deg);
      line-height: 50px;
      font-size: 18px;
      text-align: center;
      user-select: none;
    }
    &.left{
      background: #fff;
      color: #005fe0;
      font-weight: 700;
      border-top-right-radius: 30px;
    }
    &.right {
      background: #4e90e8;
      border-bottom-left-radius: 30px;
    }
    &.right .text {
      color: rgba(255, 255, 255, 0.9);
    }
  }
}
